package com.rd.student.jiaji.class3.xumingze;

import java.util.LinkedList;

public class RemoveUtils {

    Student student = new Student();
    public void remoNm(LinkedList list, String type) {

            for (int i = 0; i < list.size(); i++) {
                Student student = (Student) list.get(i);

                if (type == student.getName()) {
                    list.remove(i);
                }
            }
        }
    }

